<?php

/**
 *
 * urling build 1
 *
 */


class Urling {

	private $Charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
	private $Length = 6;

	public function Get() {
		return $this->Generate();		
	}

	private function Generate() {
		$url = '';
		for ($i=0;$i<$this->Length;$i++) {
			$rand = mt_rand( 0, strlen($this->Charset) ) -1;
			$url.= $this->Charset{$rand};
		}
		return $url;
	}
}

?>